//
//  MainSocketDelegate.h
//  TcpTest_Server
//
//  Created by scarlettsun on 12-7-28.
//  Copyright (c) 2012年 tencent. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GCDAsyncSocket.h"
#define SERVER_PORT  9527

@interface MainSocketDelegate : NSObject<GCDAsyncSocketDelegate>
{
    bool isRunning;
    NSInteger serverPort;
    dispatch_queue_t socketQueue;
    NSMutableArray *ffconnectedSocketsQueue;
}

@property (retain)GCDAsyncSocket  *listenSocket;

- (void)startStop;
//- (id)initWithQueue:(dispatch_queue_t)socketQueue;
//- (id)init;

+(NSMutableArray *)connectedSocketsQueue;
+(NSMutableArray *)theHeartBeatQueue;
+(NSMutableArray *)thePacketQueue;
@end
